/*
 * SHOPTNT 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.shoptnt.cn
 */
package cn.shoptnt.client.member.impl;

import cn.shoptnt.client.member.MemberReceiptClient;
import cn.shoptnt.client.member.MemberZpzzClient;
import cn.shoptnt.model.member.dos.MemberReceipt;
import cn.shoptnt.model.member.dos.MemberZpzzDO;
import cn.shoptnt.service.member.MemberReceiptManager;
import cn.shoptnt.service.member.MemberZpzzManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

/**
 * 会员发票默认实现
 *
 * @author zs
 * @version v7.0
 * @date 2021-12-21
 * @since v7.2.3
 */
@Service
@ConditionalOnProperty(value = "shoptnt.product", havingValue = "stand")
public class MemberReceiptClientDefaultImpl implements MemberReceiptClient {

    @Autowired
    private MemberReceiptManager memberReceiptManager;

    @Override
    public MemberReceipt getModel(Long id) {
        return memberReceiptManager.getModel(id);
    }
}
